package com.imufe.chemicalenterprisedangerwarning.entity.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author BaiBan
 * @since 2022/10/4
 */
@ApiModel("区域请求")
@Data
public class RegionQuery {

    @ApiModelProperty("编号")
    @Null(message = "创建时区域编号不能填", groups = CreateGroup.class)
    @NotNull(message = "修改时区域编号必须填", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty("区域名")
    private String name;

    @ApiModelProperty("上层区域编号")
    private Long superId;
}
